package com.milkshopbackend.milkshop.entity;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

@Data
public class OrderCreateDTO {
    @NotBlank(message = "收货地址不能为空")
    private String address;

    @NotBlank(message = "收货人姓名不能为空")
    private String receiverName;

    @NotBlank(message = "收货人电话不能为空")
    private String receiverPhone;

    private String remark;

    @NotEmpty(message = "订单项不能为空")
    private List<OrderItemDTO> orderItems;
}
